//
//  DrawerUserCell.m
//  MooreDoll
//
//  Created by 郭景豪 on 2014/12/2.
//  Copyright (c) 2014年 Tank. All rights reserved.
//

#import "DrawerUserCell.h"

@implementation DrawerUserCell

- (void)awakeFromNib {
    // Initialization code
    self.IM_UserPhoto.layer.cornerRadius = (CGRectGetWidth([UIScreen mainScreen].bounds)*0.625-109)/2;
    
    self.IM_UserPhoto.clipsToBounds = YES;
    self.IM_UserPhoto.layer.borderWidth = 3.0f;
    self.IM_UserPhoto.layer.borderColor = [UIColor colorWithHexString:@"#af794a"].CGColor;
    [self.LB_Name setFont:[UIFont fontWithName:@"Arial-BoldMT" size:CGRectGetWidth(self.bounds)*0.06]];
    [self.LB_Email setFont:[UIFont fontWithName:@"ArialHebrew" size:CGRectGetWidth(self.bounds)*0.055]];

}

//-(void)setIM_UserPhoto:(UIImageView *)IM_UserPhoto
//{
//    IM_UserPhoto = self.IM_UserPhoto;
//}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    if (selected)
    {
        self.backgroundColor = [UIColor colorWithHexString:@"554e46"];
    }
    else
    {
        self.backgroundColor = [UIColor clearColor];
    }
}

@end
